|
|
|
|
|
|
|
(table continued from previous page) |
|
|
|
|
| Object | Description | | Screen | Allows you to query and set screen-related data in your application. For example, you can set the mouse pointer as well as query the height and width of your screen. You can also determine which form and control currently has focus. |
|
|
|
|
|
|
Rules When Using System Objects |
|
|
|
|
|
|
|
|
System objects are global. This means you do not declare them or pass them to any procedure or functionyou simply use them wherever you need them. System objects are only available at runtime. There are no design time properties or methods that can be set. |
|
|
|
|
|
|
|
|
The App object provides you with some great information about your running application. The App object only has propertiesthere are no methods associated with this object. The App object is filled in automatically by Visual Basic right when your program loads. Most of the information comes from the Project, Properties menu, which you set at design time. Table 21.3 lists the important properties of the App object. |
|
|
|
|
| Table 21.3 Properties of the App Object. | | Property | Description | | Comments | This property comes from the Comments value you set in the Project, Properties menu. | | CompanyName | This property comes from the Company Name value you set in the Project, Properties menu. | | EXEName | This property is filled in with whatever the EXE filename is for your application. | | HelpFile | This property comes from the Help File Name value you set in the Project, Properties menu. | | LegalCopyright | This property comes from the Legal Copyright value you set in the Project, Properties menu. |
|
|
|
|
|
|
(table continued on next page) |
|
|
|
|
|